-- GENERATED SPELL FOR [Cursed Scarab] --


function spell0_21306(pUnit, Event) --@Plague Cloud,n/a--
pUnit:FullCastSpellOnTarget(3256,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21306', 2000, 1)
end

function Sorts_21306(pUnit, Event)
local choix_sorts_21306 = math.random(0, 0)
if choix_sorts_21306 == 0 then
pUnit:RegisterEvent('spell0_21306', 1, 1)
end
end

function mob21306_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21306', math.random(1500, 3000), 1)
end

function mob21306_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21306_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21306_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21306, 1, 'mob21306_Action')
RegisterUnitEvent(21306, 2, 'mob21306_Leave')
RegisterUnitEvent(21306, 3, 'mob21306_Kill')
RegisterUnitEvent(21306, 4, 'mob21306_Die')
